//----------------------------------Include-------------------------------------
#include "mcu.h"
#include "board.h"
#include "glbvar.h"
//------------------------------------------------------------------------------

//lcd -- 800x480
//lcd 相关程序从例程“ V5-999_出厂程序（源代码 V2.2a 2019-08-02） ” 修改而来

//-----------------------------------Macro--------------------------------------
//------------------------------------------------------------------------------

//--------------------------------Static Func-----------------------------------
//------------------------------------------------------------------------------

//--------------------------------Public Func-----------------------------------
void brd_lcd_clear(uint16_t color)
{
  LCD_ClrScr(color);
}

void brd_lcd_draw_point(uint16_t x, uint16_t y, uint16_t color)
{ 
  LCD_PutPixel(x, y, color);
}

void brd_lcd_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
{
  LCD_DrawLine(x1 , y1 , x2 , y2 , color);
}

void brd_lcd_draw_hline(uint16_t sx, uint16_t sy, uint16_t w, uint16_t color)
{
  LCD_DrawLine(sx , sy , sx+w , sy , color);
}

void brd_lcd_draw_vline(uint16_t sx, uint16_t sy, uint16_t h, uint16_t color)
{
  LCD_DrawLine(sx , sy , sx , sy+h , color);
}

void brd_lcd_init(void)
{
  LCD_InitHard();
  
  LCD_ClrScr(BLACK);
}
//------------------------------------EOF---------------------------------------


 


 

